package top.eggcode.component.query.clause;

import top.eggcode.component.query.def.LiteralSentence;

/**
 * Title:
 * Description: TODO
 * Date: 2021/9/2 13:27
 *
 * @author JiaQi Ding
 * @version 1.0
 */
public class OffsetClause implements LiteralSentence {

    private final long number;

    public OffsetClause(long number) {
        this.number = number;
    }

    @Override
    public String render() {
        StringBuilder offsetCluse = new StringBuilder("OFFSET ");
        offsetCluse.append(number);
        return offsetCluse.toString();
    }
}
